package com.zgjkhis.modules.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author yxl
 * @Description
 * @Date 2022/5/16 14:46
 **/
@Data
@ApiModel("盘点审核请求参数")
public class InventoryExamineReq {

    @ApiModelProperty(value = "唯一标识")
    @NotNull(message = "id不能为null")
    private Long id;

    @NotNull(message = "状态不能为null")
    @Max(value = 2, message = "错误的审核状态")
    @Min(value = 0, message = "错误的审核状态")
    @ApiModelProperty(value = "0-审核中,1-已完成,2-已取消")
    private Integer status;

    @ApiModelProperty(value = "待调整的库存记录")
    private List<InventoryDetailReq> details;

}
